package global_village.app;

import android.app.Application;
import android.content.Context;
import android.location.LocationManager;
import android.util.Log;

public class AppState extends Application{

	private static final String TAG = AppState.class.getSimpleName();
	
	private static Context ctx;
	private static LocationManager lm;
	
	@Override
	public void onCreate() {
		super.onCreate();
		Log.v(TAG, "< OnCreate >");
		ctx = getApplicationContext();
		lm = (LocationManager) getSystemService(LOCATION_SERVICE);
	}

	
	@Override
	public void onTerminate() {
		super.onTerminate();
		Log.v(TAG, "< onTerminate >");
	}


	public static Context getCtx(){
		return ctx;
	}
	
	public static LocationManager getLocationManager(){
		return lm;
	}
}
